<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
	<h:head></h:head>
	<body>
	<ui:component>
		<p:menubar>
        	<p:menuitem value="Home" url="http://localhost:8080/DigitalStateSWProjectWeb/index.xhtml">
        	</p:menuitem>
 
 			
 			<p:menuitem value="Personal Page" url="http://localhost:8080/DigitalStateSWProjectWeb/citizen/personalpage.xhtml">
        	</p:menuitem>
        	
        	<p:menuitem value="Parties" url="http://localhost:8080/DigitalStateSWProjectWeb/partyview.xhtml">
        	</p:menuitem>
        	
        	<p:menuitem value="Vote" url="http://localhost:8080/DigitalStateSWProjectWeb#{canElectBean.manageElect()}">
        	</p:menuitem>
        	
        	<c:if test="#{userBean.logged}">
				<f:facet name="options">
				<h:form>
            		<p:commandButton action="#{logoutBean.logout()}" value="Logout" icon="ui-icon-extlink" />
            	</h:form>
        		</f:facet>
			</c:if>
			
		</p:menubar>
		</ui:component>
	</body>
</html>